package com.ruoyi.loginfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.loginfo.mapper.LogTrackMapper;
import com.ruoyi.loginfo.domain.LogTrack;
import com.ruoyi.loginfo.service.ILogTrackService;

/**
 * 物流轨迹Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-16
 */
@Service
public class LogTrackServiceImpl implements ILogTrackService 
{
    @Autowired
    private LogTrackMapper logTrackMapper;

    /**
     * 查询物流轨迹
     * 
     * @param id 物流轨迹主键
     * @return 物流轨迹
     */
    @Override
    public LogTrack selectLogTrackById(Long id)
    {
        return logTrackMapper.selectLogTrackById(id);
    }

    /**
     * 查询物流轨迹列表
     * 
     * @param logTrack 物流轨迹
     * @return 物流轨迹
     */
    @Override
    public List<LogTrack> selectLogTrackList(LogTrack logTrack)
    {
        return logTrackMapper.selectLogTrackList(logTrack);
    }

    /**
     * 新增物流轨迹
     * 
     * @param logTrack 物流轨迹
     * @return 结果
     */
    @Override
    public int insertLogTrack(LogTrack logTrack)
    {
        return logTrackMapper.insertLogTrack(logTrack);
    }

    /**
     * 修改物流轨迹
     * 
     * @param logTrack 物流轨迹
     * @return 结果
     */
    @Override
    public int updateLogTrack(LogTrack logTrack)
    {
        return logTrackMapper.updateLogTrack(logTrack);
    }

    /**
     * 批量删除物流轨迹
     * 
     * @param ids 需要删除的物流轨迹主键
     * @return 结果
     */
    @Override
    public int deleteLogTrackByIds(Long[] ids)
    {
        return logTrackMapper.deleteLogTrackByIds(ids);
    }

    /**
     * 删除物流轨迹信息
     * 
     * @param id 物流轨迹主键
     * @return 结果
     */
    @Override
    public int deleteLogTrackById(Long id)
    {
        return logTrackMapper.deleteLogTrackById(id);
    }


    @Override
    public List<LogTrack> selectLogTrackByLogisticsInfoId(Long id) {
        return logTrackMapper.selectLogTrackByLogisticsInfoId(id);
    }
}
